import { AppRouteRecordRaw } from '@/types/routes/index';
import bussinessRoutes from './modules';

const rootRoute: AppRouteRecordRaw = {
	path: '/',
	redirect: '/app',
	name: 'root',
	meta: {
		title: 'Root',
	},
};

const errorRoutes: AppRouteRecordRaw[] = [
	{
		path: '/500',
		component: () => import('@/views/exceptions/500.vue'),
	},
	{
		path: '/:pathMatch(.*)',
		component: () => import('@/views/exceptions/404.vue'),
	},
];

export const routes: AppRouteRecordRaw[] = [rootRoute, ...bussinessRoutes, ...errorRoutes];
